package org.dtrd.config.wechat.entity.request.miniprogram;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.dtrd.config.wechat.config.WechatConstant.WechatMiniprogram;

import javax.validation.constraints.NotBlank;

/**
 * @author 萧
 * @date:2021-09-26 3:00 下午
 **/
@Data
@ApiModel(value = "小程序登录校验")
public class WxMiniprogramLoginRequest {

    /**
     * {@link  WechatMiniprogram}
     */
    @ApiModelProperty(value = "小程序类型", notes = "0-数治健康，1-工具箱，默认0", example = "0")
    private Integer type = 0;

    @NotBlank
    @ApiModelProperty(name = "登录Code", required = true)
    private String jsCode;

}
